package com.qms.repast.entity.resbean;

import java.io.Serializable;

/**
 * @author 泅渡者
 * @date 2018/9/26 0026
 * @describe:
 */
public class UserInfo implements Serializable {

	/**
	 * header : {"statusCode":"1","errorMsg":{"errorDesc":null,"errorCode":null}} body :
	 * {"userNameLogin":{"picUrl":"","phoneNumber":"13259842697","registerId":null,"nickName":"新用户","session":"e8eab205-9087-44e2-b93b-9dc567fabc01","id":3643,"userName":"新用户"}}
	 */

	private HeaderBean header;
	private BodyBean body;

	public HeaderBean getHeader () {
		return header;
	}

	public void setHeader (HeaderBean header) {
		this.header = header;
	}

	public BodyBean getBody () {
		return body;
	}

	public void setBody (BodyBean body) {
		this.body = body;
	}

	public static class HeaderBean implements Serializable {
		/**
		 * statusCode : 1 errorMsg : {"errorDesc":null,"errorCode":null}
		 */

		private String statusCode;
		private ErrorMsgBean errorMsg;

		public String getStatusCode () {
			return statusCode;
		}

		public void setStatusCode (String statusCode) {
			this.statusCode = statusCode;
		}

		public ErrorMsgBean getErrorMsg () {
			return errorMsg;
		}

		public void setErrorMsg (ErrorMsgBean errorMsg) {
			this.errorMsg = errorMsg;
		}

		public static class ErrorMsgBean implements Serializable{
			/**
			 * errorDesc : null errorCode : null
			 */

			private Object errorDesc;
			private Object errorCode;

			public Object getErrorDesc () {
				return errorDesc;
			}

			public void setErrorDesc (Object errorDesc) {
				this.errorDesc = errorDesc;
			}

			public Object getErrorCode () {
				return errorCode;
			}

			public void setErrorCode (Object errorCode) {
				this.errorCode = errorCode;
			}

			@Override
			public String toString () {
				return "ErrorMsgBean{" +
						"errorDesc=" + errorDesc +
						", errorCode=" + errorCode +
						'}';
			}
		}

		@Override
		public String toString () {
			return "HeaderBean{" +
					"statusCode='" + statusCode + '\'' +
					", errorMsg=" + errorMsg +
					'}';
		}
	}

	public static class BodyBean implements Serializable {
		/**
		 * userNameLogin : {"picUrl":"","phoneNumber":"13259842697","registerId":null,"nickName":"新用户","session":"e8eab205-9087-44e2-b93b-9dc567fabc01","id":3643,"userName":"新用户"}
		 */

		private UserNameLoginBean userNameLogin;

		public UserNameLoginBean getUserNameLogin () {
			return userNameLogin;
		}

		public void setUserNameLogin (UserNameLoginBean userNameLogin) {
			this.userNameLogin = userNameLogin;
		}

		public static class UserNameLoginBean implements Serializable {
			/**
			 * picUrl : phoneNumber : 13259842697 registerId : null nickName : 新用户 session :
			 * e8eab205-9087-44e2-b93b-9dc567fabc01 id : 3643 userName : 新用户
			 */

			private String picUrl;
			private String phoneNumber;
			private Object registerId;
			private String nickName;
			private String session;
			private int id;
			private String userName;

			public String getPicUrl () {
				return picUrl;
			}

			public void setPicUrl (String picUrl) {
				this.picUrl = picUrl;
			}

			public String getPhoneNumber () {
				return phoneNumber;
			}

			public void setPhoneNumber (String phoneNumber) {
				this.phoneNumber = phoneNumber;
			}

			public Object getRegisterId () {
				return registerId;
			}

			public void setRegisterId (Object registerId) {
				this.registerId = registerId;
			}

			public String getNickName () {
				return nickName;
			}

			public void setNickName (String nickName) {
				this.nickName = nickName;
			}

			public String getSession () {
				return session;
			}

			public void setSession (String session) {
				this.session = session;
			}

			public int getId () {
				return id;
			}

			public void setId (int id) {
				this.id = id;
			}

			public String getUserName () {
				return userName;
			}

			public void setUserName (String userName) {
				this.userName = userName;
			}

			@Override
			public String toString () {
				return "UserNameLoginBean{" +
						"picUrl='" + picUrl + '\'' +
						", phoneNumber='" + phoneNumber + '\'' +
						", registerId=" + registerId +
						", nickName='" + nickName + '\'' +
						", session='" + session + '\'' +
						", id=" + id +
						", userName='" + userName + '\'' +
						'}';
			}
		}

		@Override
		public String toString () {
			return "BodyBean{" +
					"userNameLogin=" + userNameLogin +
					'}';
		}
	}

	@Override
	public String toString () {
		return "UserInfo{" +
				"header=" + header +
				", body=" + body +
				'}';
	}
}
